package com.blb.mapper;

import com.blb.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tb
 * @since 2020-05-20
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 用户登录
     * @param account
     * @return
     */
    User login(@Param("account") String account);

    Set<String> getRoles(String userAccount);

    Set<String> getPermision(Set<String> roles);

}
